package com.xtwy.entity;

import com.xtwy.common.core.entity.BaseEntity;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @作 者: 侯建军
 * @日 期: 2018/7/28 09:34
 * @描 述:
 * @公 司：山西迅腾伟业
 */
@Data
@Table(name = "t_menu")
@Alias(value = "menu")
public class Menu extends BaseEntity {
    private Long id;
    /**
     * 菜单编码
     */
    private String code;
    /**
     * 菜单父编码
     */
    @Column(name = "p_code")
    private String pCode;
    /**
     * 父菜单ID
     */
    @Column(name = "p_id")
    private String pId;

    /**
     * 名称
     */
    private String name;
    /**
     * 请求地址
     */
    private String url;
    /**
     * 是否是菜单
     */
    @Column(name = "is_menu")
    private Integer isMenu;
    /**
     * 菜单层级
     */
    private Integer level;
    /**
     * 菜单排序
     */
    private Integer sort;
    private Integer status;
    private String icon;
}
